package com.simsuni.app.editpart;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.IFigure;

import com.jake.rcp.gef.editpart.GefEditPart;
import com.jake.rcp.gef.figure.GefFigure;
import com.jake.rcp.gef.model.GefModel;

public class ServiceEntityEditPart extends GefEditPart {

	@Override
	protected IFigure createFigure() {
		return new ServiceEntityFigure(getModel());
	}

	@Override
	protected void createEditPolicies() {

	}
	class ServiceEntityFigure extends GefFigure{

		public ServiceEntityFigure(GefModel model) {
			super(model);
		}
		@Override
		protected void paintFigure(Graphics gc) {
			gc.setForegroundColor(ColorConstants.blue);
			gc.setBackgroundColor(ColorConstants.red);
			gc.fillRectangle(this.getBounds());
		}
	}
	

}
